QT -= gui
QT += core sql gui-private
QT += widgets xml
QT += network websockets
QT += concurrent

CONFIG += c++11
CONFIG -= app_bundle

#tcmalloc
#1.编译extends目录下gperftools-2.10.zip,编译成DLL模式，静态库模式测试有问题
#2.在extends目录下建立目录tcmalloc，然后拷贝libtcmalloc_minimal.lib到目录下,
#  libtcmalloc_minimal.dll拷贝到执行目录下
#CONFIG(release,debug|release){
#    QMAKE_LFLAGS_RELEASE += /INCLUDE:"__tcmalloc"
#}else{
#    QMAKE_LFLAGS_DEBUG += /INCLUDE:"__tcmalloc"
#}

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

DESTDIR = $$PWD/../bin

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

RC_ICONS = app.ico

VERSION = 1.0.0

SOURCES += \
        basemap.cpp \
        baserole.cpp \
        common.cpp \
        dboperator.cpp \
        main.cpp \
        mapmanager.cpp \
        monsterrole.cpp \
        rolemanager.cpp

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

INCLUDEPATH += $$PWD/../libqtcore/includes \
               /usr/local/include/breakpad \
               /usr/include/gperftools

CONFIG(release,debug|release){
    LIBS += $$PWD/../libqtcore/libs/liblibqtcore.a\
            /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.a \
            /usr/local/lib/libbreakpad.a \
            /usr/local/lib/libbreakpad_client.a
}else{
    LIBS += $$PWD/../libqtcore/libs/liblibqtcore.a \
            /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.a \
            /usr/local/lib/libbreakpad.a \
            /usr/local/lib/libbreakpad_client.a
}

HEADERS += \
    basemap.h \
    baserole.h \
    common.h \
    dboperator.h \
    mapmanager.h \
    monsterrole.h \
    rolemanager.h
